<?php
/**
 * Description of WacAppSettingCode
 *
 * @author ben
 */
class WacAppSettingCode {
    public static $currency                        = "default_currency";
    public static $productionOrderEstimateItemCode = "default_estimate_code";
    
    public static $clothUnitCode                   = "default_cloth_unit_code";
    public static $conttonUnitCode                 = "default_cotton_unit_code";
    public static $dyeUnitCode                     = "default_dye_unit_code";
    public static $checkLengthUnitCode             = "default_check_length_unit_code";
    
    public static $warpDensityUnitCode        = "default_warp_density_unit_code";
    public static $fillingDensityUnitCode     = "default_filling_density_unit_code";
    public static $wrapperUnitCode            = "default_wrapper_unit_code";
    public static $textureUnitCode            = "default_texture_unit_code";
    public static $rollUnitCode               = "default_roll_unit_code";
    public static $defaultAlertDeliveryDays   = "default_alert_delivery_days";
    public static $defaultAlertRows           = "default_alert_rows";



    public static function getCodeByBizOrderType($type)
    {
        $code = self::$clothUnitCode;
        switch($type)
        {
            case WacBizOrderType::$type["cotton"]["name"]:
                $code = self::$conttonUnitCode;
                break;
            case WacBizOrderType::$type["dye"]["name"]:
                $code = self::$dyeUnitCode;
                break;
            case WacBizOrderType::$type["weave"]["name"]:
                $code = self::$clothUnitCode;
                break;
            case WacBizOrderType::$type["cleanUp"]["name"]:
                $code = self::$clothUnitCode;
                break;
            case WacBizOrderType::$type["finalCloth"]["name"]:
                $code = self::$clothUnitCode;
                break;
            default:
                $code = self::$clothUnitCode;
                break;
        }
        return $code;
    }




    
}
